import { Confilg } from '../utils/config';
import{Base} from './base';
class Token extends Base{
  
  checkToken(code,callBack,eCallBack){
    var params = {
      url:'user/token',
      data:{
        code:code
      },
      type:"post",
      sCallBack:function(res){ callBack && callBack(res.data) },
      eCallBack:function(err){ eCallBack && eCallBack(err.data)}
    }
    this.request(params);
  }
}
export{Token}